How does delete[] operator know the size of an array ?

Posted by lost3den on Stack Overflow See other posts from Stack Overflow or by lost3den
Published on 2010-04-02T12:57:28Z Indexed on 2010/04/02 13:03 UTC
Read the original article Hit count: 278

Hello everybody,

I was wondering how does delete[] operator know the size of an array, in this case (for instance) :

int* foo = new int[42];
delete[] foo;

Thanks in advance

© Stack Overflow or respective owner

Related posts about c++

Related posts about dynamic